package com.kevineric.pokedex;

import java.io.PrintStream;

import android.app.Activity;
import android.app.ListActivity;
import android.app.SearchManager;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;

public class SearchPokedex extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.search);
        
        
        System.setErr(new PrintStream(new LogTool("System.err")));
        System.setOut(new PrintStream(new LogTool("System.out")));
        
        System.out.println("Pokedex search started");
        Intent intent = getIntent();

        if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
          String query = intent.getStringExtra(SearchManager.QUERY);
          System.out.println("query received: " + query);
        }
        
    }
}
